//导入 mongoose
const mongoose = require('mongoose');

//创建文档对象
let UserSchema = new mongoose.Schema({
    username: String,
    password: String
});

//创建文档型对象
let UserModel = mongoose.model('user',UserSchema);

//暴露模型对象
module.exports = UserModel;